<?php

class VanillaAnnouncePeer extends BaseVanillaAnnouncePeer
{
    public static function getList() {
       $c = new Criteria();
       $c->addDescendingOrderByColumn(VanillaAnnouncePeer::DATE);
       $c->setLimit(10);
       return $news = VanillaAnnouncePeer::doSelectWithI18n($c);
    }

    public static function getLatestNews() {
        $c = new Criteria();
        $c->addDescendingOrderByColumn(self::DATE);
        $result = self::doSelectWithI18n($c);

        return $result[0];
    }
}
